导航菜单
首页 >  PHP问题 fopen failed to open stream No such file or  > Error : PHP fopen failed to open stream: No such file or directory · Issue #448 · nextcloud/nextcloud.com · GitHub

Error : PHP fopen failed to open stream: No such file or directory · Issue #448 · nextcloud/nextcloud.com · GitHub

Whenever I upload any file (doesn't matter what type) then go to Activity the filetype icon is missing (broken).

screen shot 2017-04-07 at 2 43 13 pm

The logs state the following:

Error PHP imagecreatefromstring(): Empty string or invalid image at /var/www/vhosts/cloud.local/httpsdocs/nextcloud/lib/private/legacy/image.php#5972017-04-07T14:49:32-0700Error PHP fclose() expects parameter 1 to be resource, boolean given at /var/www/vhosts/cloud.local/httpsdocs/nextcloud/lib/private/Files/Storage/Local.php#2182017-04-07T14:49:32-0700Error PHP fread() expects parameter 1 to be resource, boolean given at /var/www/vhosts/cloud.local/httpsdocs/nextcloud/lib/private/Files/Storage/Local.php#2172017-04-07T14:49:32-0700Error PHP fopen(/sdb/nextcloud/data/cloud_local/files/var/www/vhosts/cloud.local/httpsdocs/nextcloud/core/img/filetypes/audio.svg): failed to open stream: No such file or directory at /var/www/vhosts/cloud.local/httpsdocs/nextcloud/lib/private/Files/Storage/Local.php#2162017-04-07T14:49:32-0700Error PHP filesize(): stat failed for /sdb/nextcloud/data/cloud_local/files/var/www/vhosts/cloud.local/httpsdocs/nextcloud/core/img/filetypes/audio.svg at /var/www/vhosts/cloud.local/httpsdocs/nextcloud/lib/private/Files/Storage/Local.php#211

data directory is:

/sdb/nextcloud/data/

nextcloud root is:

/var/www/vhosts/cloud.local/httpsdocs/nextcloud/

The icons are definitely in:

/var/www/vhosts/cloud.local/httpsdocs/nextcloud/core/img/filetypes/audio.svg

My logs get flooded with this repeatedly; why are the paths getting confused like this whenever uploading and how can I resolve it?

相关推荐: